<include file="Public:header" />
<script>
    <!--
    $(function(){
        $.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'}, function(){this.close();$(obj).focus();})}});
        $("#uname").formValidator({onshow:"请输入用户名",onfocus:"请输入用户名",oncorrect:"输入正确"}).inputValidator({min:4,max:20,onerror:"用户名应该为4-20位之间"}).regexValidator({regexp:"ps_username",datatype:"enum",param:'i',onerror:"只能包括汉字、数字、字母、下划线类型。"});
        $("#upwd").formValidator({onshow:"请输入密码",onfocus:"密码应该为6-20位之间",oncorrect:"输入正确"}).inputValidator({min:6,max:20,onerror:"密码应该为6-20位之间"});
        $("#upwd2").formValidator({onshow:"请输入确认密码",onfocus:"两次密码输入不同",oncorrect:"密码输入一致"}).compareValidator({desid:"upwd",operateor:"=",onerror:"两次密码输入不同"});
        $("#email").formValidator({onshow:"请输入邮箱",onfocus:"请输入邮箱",oncorrect:"请输入邮箱"}).regexValidator({regexp:"email",datatype:"enum",param:'i',onerror:"邮箱格式错误"});
        $("#credit").formValidator({onshow:"请输入积分点数",onfocus:"积分点数应该为1-5位的数字"}).inputValidator({max:5,onerror:"积分点数应该为1-5位的数字"}).regexValidator({regexp:"num1",datatype:"enum",param:'i',onerror:"积分点数应该为1-5位的数字"});
    })
    //-->
</script>
<div class="common-form">
    <form name="myform" id="myform" action="{:U('Member/insert')}" method="post">
        <input type="hidden" name="ucverify" value="{$MCFG.uc_enable}">
        <input type="hidden" name="doclose" id="doclose" value="0">
        <table width="100%" class="table_form contentWrap">
            <tr>
                <td width="120">用户名：</td>
                <td><input name="uname" id="uname" type="text" size="20"/></td>
            </tr>
            <tr>
                <td>密码：</td>
                <td><input type="password" name="upwd" id="upwd" size="20" class="input-text"></td>
            </tr>
            <tr>
                <td>确认密码：</td>
                <td><input type="password" name="upwd2" id="upwd2" size="20" class="input-text"></td>
            </tr>
            <tr>
                <td>邮箱：</td>
                <td><input name="email" type="text" id="email" size="20"/></td>
            </tr>
            <tr>
                <td>联系人：</td>
                <td><input type="text" name="contacter" size="20"></td>
            </tr>
            <tr>
                <td>联系电话：</td>
                <td><input type="text" name="tel" size="40"></td>
            </tr>
            <tr>
                <td>公司（店铺）名称：</td>
                <td><input type="text" name="company" size="40"></td>
            </tr>
            <tr>
                <td>公司（店铺）地址：</td>
                <td><input type="text" name="address" size="40"></td>
            </tr>
            <tr>
                <td>会员组：</td>
                <td>
                    <select name="gid">
                        <volist name="grouplist" id="vo">
                            <if condition="$vo.id lt 5"><option value="{$vo.id}" <eq name="vo.id" value="4">selected</eq>>{$vo.gname}</option></if>
                        </volist>
                    </select>
                </td>
            </tr>
            <tr>
                <td>积分点数：</td>
                <td><input type="text" name="credit" id="credit" size="10" value="{$MCFG['credit_reg']}"></td>
            </tr>
        </table>
        <div class="bk15"></div>
        <div class="btn"><input type="submit" id="dosubmit" class="dialog" name="dosubmit" value=" 提 交 "/></div>
    </form>
</div>